<%@ page language="java" pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(function() {
		$('#student_familyAdd_relationshipCombobox').combobox({
			valueField : 'cvalue',
			textField : 'cname',
			editable:false,
			onSelect : function(rec) {
				$('#student_familyAdd_addFamilyForm input[name=relationship]').val(rec.cvalue);
			}
		});
		$('#student_familyAdd_beliefCombobox').combobox({
			valueField : 'cvalue',
			textField : 'cname',
			editable:false,
			onSelect : function(rec) {
				$('#student_familyAdd_addFamilyForm input[name=belief]').val(rec.cvalue);
			}
		});
	});
</script>
<form id="student_familyAdd_addFamilyForm" method="post">
	<table>
		<tr>
			<td style="text-align: right;">姓名：</td>
			<td><input name="name" class="easyui-validatebox" data-options="required:true,missingMessage:'必填项'" />
			<td style="text-align: right;">关系：</td>
			<td><input id="student_familyAdd_relationshipCombobox" name="relationshipName" class="easyui-combobox" data-options="required:true,missingMessage:'必填项'" /></td>
		</tr>
		<tr>
			<td style="text-align: right;">性别：</td>
			<td><input type="radio" name="gender" value="01" checked="checked" />&nbsp;男 <input type="radio" name="gender" value="02" />&nbsp;女</td>
			<td style="text-align: right;">出生日期：</td>
			<td><input name="birthday" class="easyui-datebox" /></td>
		</tr>
		<tr>
			<td style="text-align: right;">宗教信仰：</td>
			<td colspan="3"><input id="student_familyAdd_beliefCombobox" name="beliefName" /></td>
		</tr>
		<tr>
			<td style="text-align: right;">健康状况：</td>
			<td colspan="3"><textarea name="health" style="width:400px;"></textarea></td>
		</tr>
		<tr>
			<td style="text-align: right;">备注：</td>
			<td colspan="3"><textarea name="memo" style="width:400px;"></textarea></td>
		</tr>
	</table>
	<input name="studentId" type="hidden" />
	<input name="relationship" type="hidden" />
	<input name="belief" type="hidden" />
</form>